﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BLL;
using TTCN_QLDiemC3.MyUserControl.UCHienThi;
using TTCN_QLDiemC3.MyUserControl.UCMenu;

namespace TTCN_QLDiemC3.MyUserControl.UCHienThi
{
    public partial class UCDanhSachChucNang : UserControl
    {
        public UCDanhSachChucNang()
        {
            InitializeComponent();
        }

        private void pbHocSinh_Click(object sender, EventArgs e)
        {
            UCChucNangHocSinh ucchucnanghs = new UCChucNangHocSinh();
            UCDanhSachHS ucdshs = new UCDanhSachHS();
            Form form=this.ParentForm;
            ControlAccess.ShowConTrol(form, ucchucnanghs, "grbMenu");
            ControlAccess.ShowConTrol(form, ucdshs, "grbHienThiChucNang");
        }

        private void pbGiaoVien_Click(object sender, EventArgs e)
        {
            UCChucNangGiaoVien ucchucnanggv = new UCChucNangGiaoVien();
            UCDanhSachGV ucdsgv = new UCDanhSachGV();
            Form form = this.ParentForm;
            ControlAccess.ShowConTrol(form, ucchucnanggv, "grbMenu");
            ControlAccess.ShowConTrol(form, ucdsgv, "grbHienThiChucNang");
        }

        private void pbMonHoc_Click(object sender, EventArgs e)
        {
            UCChucNangMon ucchucnanggv = new UCChucNangMon();
            UCDanhSachMon ucdsMon = new UCDanhSachMon();
            Form form = this.ParentForm;
            ControlAccess.ShowConTrol(form, ucchucnanggv, "grbMenu");
            ControlAccess.ShowConTrol(form, ucdsMon, "grbHienThiChucNang");
        }
    }
}
